﻿using System;
using System.ComponentModel;

namespace HobSoft.SoccerBet2014.Client.ViewModels
{
    public class ModelMessage : INotifyPropertyChanged
    {
        private string _sourceName;

        public string SourceName
        {
            get { return _sourceName; }
            set
            {
                _sourceName = value;
                RaisePropertyChanged("SourceName");
            }
        }


        private string _message;

        public string Message
        {
            get { return _message; }
            set
            {
                _message = value;
                RaisePropertyChanged("Message");
            }
        }

        private DateTime _sendTime;

        public DateTime SendTime
        {
            get { return _sendTime; }
            set
            {
                _sendTime = value;
                RaisePropertyChanged("SendTime");
            }
        }

        protected void RaisePropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
        }

        public event PropertyChangedEventHandler PropertyChanged;
    }
}
